package cn.yitun.chat.yitunserverimapicore.business.contact.service;

import cn.yitun.chat.yituncommonmessage.Info;
import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudService;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddVerifyQuestionDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactHarassSettingDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactHarassSettingInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactAddVerifyQuestionVo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactHarassSettingVo;

import java.util.List;

/**
 * Date 2019-01-20 18:21:27<br>
 * Description
 *
 * @author yitun<br>
 * @version 1.1
 */
public interface HarassSettingService
		extends CrudService<ContactHarassSettingDto, ContactHarassSettingInfo, ContactHarassSettingVo>{


	/**
	 * 
	 * Date 2019-01-20 18:59:56<br>
	 * Description 获取用户防骚扰设置
	 * 
	 * @param userId
	 * @return
	 * @author yitun<br>
	 * @version 1.1
	 */
	ContactHarassSettingVo getByUserId(Long userId);

	/**
	 * 
	 * Date 2019-01-20 19:01:54<br>
	 * Description 获取用户验证问题列表
	 * 
	 * @param userId
	 * @return
	 * @author yitun<br>
	 * @version 1.1
	 */
	List<ContactAddVerifyQuestionVo> getVerifyQuestionListByUserId(Long userId);

	Info saveWithQuestiones(ContactHarassSettingDto data);

	Info saveOrUpdate(ContactHarassSettingDto data);

	void saveOrUpdate(Long userId, List<ContactAddVerifyQuestionDto> list);

}
